{% extends "base.html" %}
{% load url from future %}
{% load humanize %}

{% block content %}

    <h1>Player {{ player }}</h1>

    <h2>Planets</h2>
    <table>
        {% for planet in planets %}
            <tr>
                <td>
                    <a href="{% url 'show_planet' planet.id %}">
                        {{ planet.galaxy }}:{{ planet.ss|escape }}:{{ planet.position}}
                    </a>
                </td>
                <td>
                    <a href="{% url 'show_player' planet.player.id %}">
                        {{ planet.player }}
                    </a>
                </td>
                <td>
                    {{ planet.last_update|naturaltime }}
                </td>
            </tr>
        {% endfor %}
    </table>
{% endblock %}
